from base import StringBuffer
def render(score, name, size = 16, function = "''", params = "''", bchange = 'false'):
    score = score * 10
    score = int(score / 10) * 10
    star = score / 20
    _ = StringBuffer()
    _('''
    <div class="starbar%d_%d starbarv5" onmousemove='starbarv5_mouse_move(event, this, %d)'
        onmouseout='starbarv5_mouse_out(this)'
        onclick="starbarv5_click(event, this, %d, %s, %s, %s)">
        <span class='score' style='display:none;'>%d</span>
        <input class='star' type='hidden' name='%s' value='%d'/>
    </div>
    ''' % (size, score, size, size, function, params, bchange, score, name, star))
    return _.getvalue()